# netbeans
alias netbeans='/usr/local/netbeans-6.0/bin/netbeans'
# some more ls aliases
alias ll='ls -l'
alias la='ls -a'
alias version='lsb_release -d -s -c'

# alias to go quickly in the workspaceandroid directory
alias wa='cd ~/Documents/WorkspaceAndroid';

# google chrome with user-agent:iphone
alias goc='google-chrome --user-agent="Mozilla/5.0(iPad; U; iPhone OS 3_2; en-us) AppleWebKit/531.21.10 Mobile/7B314"'
alias ouv='gnome-open .'
alias vb='ssh -A 192.168.56.101'
alias montvb='sudo sshfs -o allow_other,nonempty 192.168.56.101:/home/aat/devel /home/aat/devel'
alias webauth='wget -q --delete-after --post-data="admin_id=ApocopeExt&admin_pw=figockbo77" http://89.185.32.9/'
alias bug='echo -e "\033(0"'

# Alias for android
alias logcat='/opt/android-sdk-linux/platform-tools/adb logcat'
alias devices='/opt/android-sdk-linux/platform-tools/adb devices'
alias adbrestart='/opt/android-sdk-linux/platform-tools/adb start-server ; /opt/android-sdk-linux/platform-tools/adb kill-server'
alias adb='/opt/android-sdk-linux/platform-tools/adb'
alias remotedebug='/opt/android-sdk-linux/platform-tools/adb forward tcp:9222 localabstract:chrome_devtools_remote'
alias s1='31355B97666A00EC'
alias rerun='source ~/.bashrc'

# thanks to:  http://blog.blindgaenger.net/colorize_maven_output.html
# and: http://johannes.jakeapp.com/blog/category/fun-with-linux/200901/maven-colorized
# Colorize Maven Output
alias maven="command mvn"
color_maven() {
  maven $* | sed -e 's/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/[1;32mTests run: \1[0m, Failures: [1;31m\2[0m, Errors: [1;33m\3[0m, Skipped: [1;34m\4[0m/g' \
    -e 's/\(\[WARN\].*\)/[1;33m\1[0m/g' \
    -e 's/\(WARN.*\)/[0;33m\1[0m/g' \
    -e 's/\(\[INFO\].*\)/[1;32m\1[0m/g' \
    -e 's/\(\[ERROR\].*\)/[1;31m\1[0m/g' \
    -e 's/\(BUILD FAILURE.*\)/[1;31m\1[0m/g' \
    -e 's/\(FAILURE!.*\)/[1;31m\1[0m/g' \
    -e 's/\(BUILD SUCCESS.*\)/[1;37m\1[0m/g' \
    -e 's/\(SUCCESS.*\)/[1;37m\1[0m/g' 
    
}

alias mvn=color_maven
